package cn.huiyunche.bms.backend.service;

import cn.huiyunche.bms.base.model.BArea;

import java.util.List;

/**
 * Created by Felix on 2017/7/6 9527.
 */
public interface AreaService {

    /**
     * 查询
     * @param code
     * @return
     * @throws Exception
     */
    List<BArea> queryByCode(String code) throws Exception;

    /**
     * 查询市或县
     * @param parentCode
     * @return
     * @throws Exception
     */
    List<BArea> queryByParentCode(String parentCode) throws Exception;

    /**
     * 查询省
     * @return
     * @throws Exception
     */
    List<BArea> queryProvince() throws Exception;
}
